import request from '@/utils/request'

// 查询车辆登记列表
export function listVehicleHead(query) {
  return request({
    url: '/vehicle/vehicleHead/list',
    method: 'get',
    params: query
  })
}

// 查询车辆登记列表
export function searchVehicleExistList(jcVehicleId) {
  return request({
    url: '/vehicle/vehicleHead/searchVehicleExistList/' + jcVehicleId,
    method: 'get'
  })
}

// 查询车辆登记详细
export function getVehicleHead(id) {
  return request({
    url: '/vehicle/vehicleHead/' + id,
    method: 'get'
  })
}
// 查询车辆登记详细
export function searchVehicleHead(name) {
  return request({
    url: '/vehicle/vehicleHead/searchList/' + name,
    method: 'get'
  })
}

// 新增车辆登记
export function addVehicleHead(data) {
  return request({
    url: '/vehicle/vehicleHead',
    method: 'post',
    data: data
  })
}

// 修改车辆登记
export function updateVehicleHead(data) {
  return request({
    url: '/vehicle/vehicleHead',
    method: 'put',
    data: data
  })
}

// 删除车辆登记
export function delVehicleHead(id) {
  return request({
    url: '/vehicle/vehicleHead/' + id,
    method: 'delete'
  })
}
